// stores/counter.js
import { defineStore } from "pinia";

import { userListRequest } from "@/libs/service/api/user/user";
import { ref } from "vue";

/**
 * 根
 */
export const userPinia = defineStore("user", () => {
  // state
  const userList: any = ref([]);
  const totla:any=ref(0)
  // actions
  async function userListActions(playLoad: any) {
    const result=await userListRequest(playLoad)
    userList.value=result.data.list
    totla.value=result.data.total
  }
  return {
    userList,
    userListActions,
    totla
  };
});
